package com.moli.iov.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * <p>
 *
 * </p>
 *
 * @Auther: zql
 * @Date: 2019/1/7 9:21
 */
public class StartTask {

    protected static final Logger logger = LoggerFactory.getLogger(StartTask.class);

    public static void main(String[] args) {
        logger.info("★★★★★★iov-task服务开始启动★★★★★★");
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring/spring-base.xml");
        context.start();
        logger.info("★★★★★★iov-task服务启动成功★★★★★★");
        synchronized (StartTask.class){
            do {
                try{
                    StartTask.class.wait();
                }catch (Exception e) {
                    logger.error("启动类异常", e);
                }
            }while (true);
        }
    }
}
